package com.fowo.api.model.inventory.report;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import javax.validation.constraints.*;
import lombok.Getter;
import lombok.Setter;

/** 库存报表 导入导出辅助模型 */
@Getter
@Setter
public class InventoryReportExcelPo {

  @Size(max = 50, message = "仓库长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "仓库")
  private String stockIdName;

  @ExcelIgnore
  @ExcelProperty(value = "仓库")
  private Long stockId;

  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "产品")
  private String itemIdName;

  @ExcelIgnore
  @ExcelProperty(value = "产品")
  private Long itemId;

  @Size(max = 50, message = "批次号长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "批次号")
  private String batchNo;

  @ExcelProperty(value = "库存数量")
  private java.math.BigDecimal stockQty;

  @ExcelProperty(value = "库存金额")
  private java.math.BigDecimal stockAmount;
}
